﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>NewsAdminInfoForm</title>
    <script type="text/javascript">
    </script>
    <style type="text/css">
    </style>
</head>
<body>
<form id="formx" name="formx" method="post" enctype="multipart/form-data">
    <div class="easyui-layout" data-options="fit:true," style="padding: 0px;">
        <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
            <div style="float: left; padding: 1px;">
                <a id="btnSave" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true,">保存</a>
                <a id="btnRefresh" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-refresh',plain:true,">刷新</a>
                <a id="btnHelp" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true,">帮助</a>
                <a id="btnClose" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,">关闭</a>
            </div>
            <div style="float: right; padding: 2px 1px 0px 2px;"><input class="easyui-searchbox" data-options="prompt:'关键字'" style="width: 150px" /></div>
        </div>
        <div data-options="region:'center',split:true," style="padding: 1px;">
            <div class="easyui-tabs" data-options="fit:true,tabPosition:'left',tabWidth:64,headerWidth:68,">
                <div title="内容录入" style="overflow-x: hidden;">
                    <div class="easyui-layout" data-options="fit:true,">
                        <div data-options="region:'center',split:true," style="padding: 1px;">
                            <div class="easyui-layout" data-options="fit:true,">
                                <div data-options="region:'center',split:true," style="padding: 16px; overflow: auto; text-align: center; background: #c0c0c0;">
                                    <div id="tabsContent" class="easyui-tabs" data-options="tools:'#tab-tools',fix:true,plain:false,narrow:false,pill:true,justified:false,width:'100%',height:'100%',tabPosition:'top'," style="width: 100%; max-width: 800px; height: 100%; min-height: 360px; margin: 0 auto; background: #ffffff;">
                                        <div title="第1页" id="tabsIndex" class="tabsIndex"><textarea id="Content" name="Content" style="width: 100%; height: 100%;"></textarea></div>
                                    </div>
                                    <div id="tab-tools"><a id="panelAdd" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add2'"></a></div>
                                </div>
                                <div data-options="region:'south',split:false," style="height: 65px; padding: 1px; overflow: hidden;">
                                    <div class="easyui-panel" data-options="fit:true,title:'默认图'," style="overflow: hidden;">
                                        <div class="rows3x" style="margin: 5px 2px 0px 4px; width: 480px;">
                                            <div class="left">选择一个：</div><div class="right"><img id="Image1" style="width: 40px; height: 22px; margin: 0px; padding: 0px; border: 0px; float: left;" src="/images/logo.jpg" /></div>
                                            <div class="center" style="width: auto;"><div class="main"><span id="imageSpan"><select class="easyui-combobox" id="Image" name="Image" data-options="" style="width:360px;"></select></span></div></div><div class="c"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div data-options="region:'west',split:true," style="width:240px; padding: 1px; overflow-x: hidden; overflow-y: scroll; background: #f0f0f0;">
                            <div class="easyui-panel" title="文章标题" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows2"><div class="left line-height-normal">主标题：</div><div class="right"><input id="Title" name="Title" class="easyui-textbox" style="width: 100%; height: 52px;" type="text" data-options="required:false,multiline:true,prompt:'主标题'," /></div></div>
                                <div class="rows2"><div class="left line-height-auto">副标题：</div><div class="right"><input id="TitleSe" name="TitleSe" class="easyui-textbox" style="width: 100%; height: 38px;" type="text" data-options="required:false,multiline:true,prompt:'副标题'," /></div></div>
                                <div class="rows2"><div class="left line-height-auto">短标题：</div><div class="right"><input id="TitleShort" name="TitleShort" class="easyui-textbox" style="width: 100%; height: 38px;" type="text" data-options="required:false,multiline:true,prompt:'短标题'," /></div></div>
                            </div>
                            <div class="easyui-panel" title="文章摘要" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows2"><input id="Summary" name="Summary" class="easyui-textbox" style="width: 100%; height: 88px;" data-options="required:false,multiline:true,prompt:''," /></div>
                            </div>
                            <div class="easyui-panel" title="信息关联" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left" style="text-align: right;">启用链接：</div><div class="right"><input type="checkbox" value="1" id="UrlEnable" name="UrlEnable" />是</div>
                                    <div class="center"><div class="main"><input id="Url" name="Url" class="easyui-textbox" style="width: 100%; height: 38px;" type="text" data-options="required:false,multiline:true,prompt:''," /></div></div><div class="c"></div>
                                </div>
                                <div class="rows2"><div class="left" style="text-align: right;">标签：</div><div class="right"><input id="Tag" name="Tag" class="easyui-textbox" style="width: 100%;" type="text" /></div></div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left" style="text-align: right;">关键字：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">提取</a></div>
                                    <div class="center"><div class="main"><input id="KeyWord" name="KeyWord" class="easyui-textbox" style="width: 100%;" type="text" /></div></div><div class="c"></div>
                                </div>
                            </div>
                            <div class="easyui-panel" title="信息归属" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows2"><div class="left">信息类型：</div><div class="right" style="margin-bottom: 1px;"><select class="easyui-combobox" id="Type" name="Type" data-options=""><option value="0" selected="selected">原创</option><option value="1">转载</option></select></div></div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">文章作者：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input id="AuthorName" name="AuthorName" class="easyui-textbox" style="width: 100%;" type="text" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">来源名称：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input id="SourceName" name="SourceName" class="easyui-textbox" style="width: 100%;" type="text" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">来源标题：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">同上</a></div>
                                    <div class="center"><div class="main"><input id="SourceTitle" name="SourceTitle" class="easyui-textbox" style="width: 100%;" type="text" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">来源地址：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input id="SourceUrl" name="SourceUrl" class="easyui-textbox" style="width: 100%;" type="text" /></div></div><div class="c"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div title="基本参数" style="overflow-x: hidden;">
                    <div class="easyui-layout" data-options="fit:true,">
                        <div data-options="region:'center',split:true," style="padding: 1px;">
                            <div class="easyui-panel" title="评论权限" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="LimitDiscuss1" name="LimitDiscuss" type="radio" value="0" checked="checked" />继承节点
                                    <input id="LimitDiscuss2" name="LimitDiscuss" type="radio" value="1" />匿名
                                    <input id="LimitDiscuss3" name="LimitDiscuss" type="radio" value="2" />注册用户
                                    <input id="LimitDiscuss4" name="LimitDiscuss" type="radio" value="-1" />禁止
                                </p>
                            </div>
                            <div class="easyui-panel" title="表情" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="LimitEmotion1" name="LimitEmotion" type="radio" value="0" checked="checked" />继承节点
                                    <input id="LimitEmotion2" name="LimitEmotion" type="checkbox" value="1" />开启
                                    <input id="LimitEmotion3" name="LimitEmotion" type="checkbox" value="-1" />关闭
                                </p>
                            </div>
                            <div class="easyui-panel" title="版权申明" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="LimitCopyright1" name="LimitCopyright" type="radio" value="0" checked="checked" />继承节点
                                    <input id="LimitCopyright2" name="LimitCopyright" type="checkbox" value="1" />开启
                                    <input id="LimitCopyright3" name="LimitCopyright" type="checkbox" value="-1" />关闭
                                    <input id="LimitCopyright4" name="LimitCopyright" type="checkbox" value="9" />自定义
                                    <input id="Copyrights" name="Copyrights" type="text" value="" />
                                    <a class="easyui-linkbutton" style="width: 38px; height: 22px;">...</a>
                                </p>
                            </div>
                            <div class="easyui-panel" title="置顶状态" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="FlagTops" name="FlagTops" type="checkbox" value="9" />头条[全站置顶]
                                    <input id="FlagTop" name="FlagTop" type="checkbox" value="1" />置顶[栏目置顶]
                                </p>
                            </div>
                            <div class="easyui-panel" title="色彩样式" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p><input id="CssName1" name="CssName" type="radio" value=".txtRed" />红色
                                    <input id="CssName2" name="CssName" type="radio" value=".txtGreen" />绿色
                                    <input id="CssName3" name="CssName" type="radio" value=".txtBlue" />蓝色
                                    <input id="CssName4" name="CssName" type="radio" value="" checked="checked" />其它
                                    <input id="CssNames" name="CssNames" type="text" value="" />
                                </p>
                            </div>
                            <div class="easyui-panel" title="焦点图显示" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p><input id="FlagFocus" name="FlagFocus" type="checkbox" value="1" />显示到焦点图</p>
                            </div>
                        </div>
                        <div data-options="region:'west',split:true," style="width:240px; padding: 1px; overflow-x: hidden; overflow-y: hidden;">
                            <div class="easyui-panel" title="审核状态" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="FlagPass1" name="FlagPass" type="radio" value="0" />未审
                                    <input id="FlagPass2" name="FlagPass" type="radio" value="1" />已审
                                </p>
                            </div>
                            <div class="easyui-panel" title="信息状态" style="width: 100%; margin-bottom: 1px; padding: 3px 3px 3px 0px;" data-options="fit:false,iconCls:'icon-config',closable:false,">
                                <p>
                                    <input id="FlagStatus1" name="FlagStatus" type="radio" value="0" />正常
                                    <input id="FlagStatus2" name="FlagStatus" type="radio" value="1" />停止<br />
                                    <input id="FlagStatus3" name="FlagStatus" type="radio" value="-1" />删除【进入回收站可恢复】
                                </p>
                            </div>
                            <div class="easyui-panel" title="发布选项" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">独立模板：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input class="easyui-textbox" type="text" style="width: 100%;" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">点 击 数：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">随机</a></div>
                                    <div class="center"><div class="main"><input class="easyui-textbox" type="text" style="width: 100%;" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows2"><div class="left">上线时间：</div><div class="right"><input id="Text1" name="DateTimes" class="easyui-datetimebox" style="width: 100%;" type="text" /></div></div>
                                <div class="rows2"><div class="left">下线时间：</div><div class="right"><input id="Text2" name="DateTimes" class="easyui-datetimebox" style="width: 100%;" type="text" /></div></div>
                            </div>
                            <div class="easyui-panel" title="其它选项" style="padding: 1px 1px 0px 1px; margin-bottom: 1px;" data-options="iconCls:'icon-config',closable:false,">
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">录入人员：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input class="easyui-textbox" type="text" id="CreateStaffId" name="CreateStaffId" style="width: 100%;" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows3x" style="margin-bottom: 1px;">
                                    <div class="left">审核人员：</div><div class="right"><a class="easyui-linkbutton" style="float: right; width: 38px; height: 22px;">...</a></div>
                                    <div class="center"><div class="main"><input class="easyui-textbox" type="text" id="PassStaffId" name="PassStaffId" style="width: 100%;" /></div></div><div class="c"></div>
                                </div>
                                <div class="rows2"><div class="left">远程图片：</div><div class="right"><input type="checkbox" checked="checked" />自动下载</div></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div title="扩展参数" style="overflow-x: hidden;">
                    <div class="easyui-layout" data-options="fit:true,">
                        <div data-options="title:'基本扩展（请先在“节点管理”中定义要扩展的字段）',region:'north',split:false," style="height: 150px; padding: 1px; overflow-x: hidden; overflow-y: scroll;">
                            <fieldset class="fieldsetCSS2">
                                <legend>整型字段</legend>
                                <p>1：<input id="KeyInt1" name="KeyInt1" class="key2" disabled="disabled" />：<input id="ValueInt1" name="ValueInt1" class="easyui-textbox value2" /></p>
                                <p>2：<input id="KeyInt2" name="KeyInt2" class="key2" disabled="disabled" />：<input id="ValueInt2" name="ValueInt2" class="easyui-textbox value2" /></p>
                                <p>3：<input id="KeyInt3" name="KeyInt3" class="key2" disabled="disabled" />：<input id="ValueInt3" name="ValueInt3" class="easyui-textbox value2" /></p>
                                <p>4：<input id="KeyInt4" name="KeyInt3" class="key2" disabled="disabled" />：<input id="ValueInt4" name="ValueInt3" class="easyui-textbox value2" /></p>
                                <p>5：<input id="KeyInt5" name="KeyInt3" class="key2" disabled="disabled" />：<input id="ValueInt5" name="ValueInt3" class="easyui-textbox value2" /></p>
                            </fieldset>
                            <fieldset class="fieldsetCSS2">
                                <legend>字符串字段</legend>
                                <p>1：<input id="KeyString1" name="KeyString1" class="key2" disabled="disabled" />：<input id="ValueString1" name="ValueString1" class="easyui-textbox value2" /></p>
                                <p>2：<input id="KeyString2" name="KeyString2" class="key2" disabled="disabled" />：<input id="ValueString2" name="ValueString2" class="easyui-textbox value2" /></p>
                                <p>3：<input id="KeyString3" name="KeyString3" class="key2" disabled="disabled" />：<input id="ValueString3" name="ValueString3" class="easyui-textbox value2" /></p>
                                <p>4：<input id="KeyString4" name="KeyString4" class="key2" disabled="disabled" />：<input id="ValueString4" name="ValueString4" class="easyui-textbox value2" /></p>
                                <p>5：<input id="KeyString5" name="KeyString5" class="key2" disabled="disabled" />：<input id="ValueString5" name="ValueString5" class="easyui-textbox value2" /></p>
                            </fieldset>
                            <fieldset class="fieldsetCSS2">
                                <legend>浮点型字段</legend>
                                <p>1：<input id="KeyFloat1" name="KeyFloat1" class="key2" disabled="disabled" />：<input id="ValueFloat1" name="ValueFloat1" class="easyui-textbox value2" /></p>
                                <p>2：<input id="KeyFloat2" name="KeyFloat2" class="key2" disabled="disabled" />：<input id="ValueFloat2" name="ValueFloat2" class="easyui-textbox value2" /></p>
                                <p>3：<input id="KeyFloat3" name="KeyFloat3" class="key2" disabled="disabled" />：<input id="ValueFloat3" name="ValueFloat3" class="easyui-textbox value2" /></p>
                                <p>4：<input id="KeyFloat4" name="KeyFloat4" class="key2" disabled="disabled" />：<input id="ValueFloat4" name="ValueFloat4" class="easyui-textbox value2" /></p>
                                <p>5：<input id="KeyFloat5" name="KeyFloat5" class="key2" disabled="disabled" />：<input id="ValueFloat5" name="ValueFloat5" class="easyui-textbox value2" /></p>
                            </fieldset>
                            <fieldset class="fieldsetCSS3">
                                <legend>日期型字段</legend>
                                <p>1：<input id="KeyDateTime1" name="KeyDateTime1" class="key3" disabled="disabled" />：<input id="ValueDateTime1" name="ValueDateTime1" class="easyui-datetimebox value3" /></p>
                                <p>2：<input id="KeyDateTime2" name="KeyDateTime2" class="key3" disabled="disabled" />：<input id="ValueDateTime2" name="ValueDateTime2" class="easyui-datetimebox value3" /></p>
                                <p>3：<input id="KeyDateTime3" name="KeyDateTime3" class="key3" disabled="disabled" />：<input id="ValueDateTime3" name="ValueDateTime3" class="easyui-datetimebox value3" /></p>
                                <p>4：<input id="KeyDateTime4" name="KeyDateTime4" class="key3" disabled="disabled" />：<input id="ValueDateTime4" name="ValueDateTime4" class="easyui-datetimebox value3" /></p>
                                <p>5：<input id="KeyDateTime5" name="KeyDateTime5" class="key3" disabled="disabled" />：<input id="ValueDateTime5" name="ValueDateTime5" class="easyui-datetimebox value3" /></p>
                            </fieldset>
                        </div>
                        <div data-options="title:'自定义字段扩展',region:'center',split:true," style="padding: 1px;">
                        </div>
                    </div>
                </div>
                <div title="内容配图" style="overflow-x: hidden;">
                    <div class="easyui-tabs" data-options="fit:true,tabPosition:'left',tabWidth:64,headerWidth:68,">
                        <div title="引导图" style="width: 72px;">
                            <div class="easyui-layout" data-options="fit:true,">
                                <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
                                    <div style="float: left;">
                                        <a href="javascript:void(0)" class="easyui-linkbutton mp0" id="GuideAdd" data-options="iconCls:'icon-add1',plain:true,"></a>
                                        <a href="#" class="easyui-menubutton" data-options="menu:'#mmGuide',iconCls:'icon-edit',"></a>
                                        <div id="mmGuide" style="width: 150px;">
                                            <div id="GuideDelete" data-options="iconCls:'icon-cancel'">删除</div>
                                        </div>
                                    </div>
                                    <div style="float: right; padding: 2px 1px 0px 2px;">
                                    </div>
                                </div>
                                <div data-options="region:'center',split:true," style="padding: 1px; text-align: center; overflow: auto;">
                                    <input id="Guide" name="Guide" type="hidden" />
                                    <img id="Guide1" alt="" />
                                </div>
                            </div>
                        </div>
                        <div title="宽屏图" style="width: 72px;">
                            <div class="easyui-layout" data-options="fit:true,">
                                <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
                                    <div style="float: left;">
                                        <a href="javascript:void(0)" class="easyui-linkbutton mp0" id="BannerAdd" data-options="iconCls:'icon-add1',plain:true,"></a>
                                        <a href="#" class="easyui-menubutton" data-options="menu:'#mmBanner',iconCls:'icon-edit',"></a>
                                        <div id="mmBanner" style="width: 150px;">
                                            <div id="BannerDelete" data-options="iconCls:'icon-cancel'">删除</div>
                                        </div>
                                    </div>
                                    <div style="float: right; padding: 2px 1px 0px 2px;">
                                    </div>
                                </div>
                                <div data-options="region:'center',split:true," style="padding: 1px; text-align: center; overflow: auto;">
                                    <input id="Banner" name="Banner" type="hidden" />
                                    <img id="Banner1" alt="" src="/images/logo.jpg" />
                                </div>
                            </div>
                        </div>
                        <div title="小图标" style="width: 72px;">
                            <div class="easyui-layout" data-options="fit:true,">
                                <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
                                    <div style="float: left;">
                                        <a href="javascript:void(0)" class="easyui-linkbutton mp0" id="IconAdd" data-options="iconCls:'icon-add1',plain:true,"></a>
                                        <a href="#" class="easyui-menubutton" data-options="menu:'#mmIcon',iconCls:'icon-edit',"></a>
                                        <div id="mmIcon" style="width: 150px;">
                                            <div id="IconDelete" data-options="iconCls:'icon-cancel'">删除</div>
                                        </div>
                                    </div>
                                    <div style="float: right; padding: 2px 1px 0px 2px;">
                                    </div>
                                </div>
                                <div data-options="region:'center',split:true," style="padding: 1px; text-align: center; overflow: auto;">
                                    <input id="Icon" name="Icon" type="hidden" />
                                    <img id="Icon1" alt="" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div title="图库列表" style="overflow-x: hidden;">
                    <div class="easyui-layout" data-options="fit:true,">
                        <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
                            <div style="float: left;">
                                <a href="javascript:void(0)" class="easyui-linkbutton mp0" id="GalleryAdd" data-options="iconCls:'icon-add1',plain:true,"></a>
                                <a href="#" class="easyui-menubutton" data-options="menu:'#mmGallery',iconCls:'icon-edit',"></a>
                                <div id="mmGallery" style="width: 150px;">
                                    <div id="GalleryDelete" data-options="iconCls:'icon-cancel'">删除</div>
                                    <div id="GalleryStop" data-options="iconCls:'icon-stop'">停止</div>
                                </div>
                            </div>
                            <div style="float: right; padding: 2px 1px 0px 2px;">
                            </div>
                        </div>
                        <div data-options="region:'center',split:true," style="padding: 1px; overflow: hidden;">
                            <table id="Table1" class="easyui-datagrid" style="width: 100%; height: 100%; overflow: hidden;" data-options="title:'新闻内容列表',iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                        url:'/Ashx/Acc/Staff/NewsAdminInfoList.ashx',method:'post',autoRowHeight:true,toolbar:'#tbs',onLoadSuccess:function(){$(this).datagrid('enableDnd');},">
                                <thead>
                                    <tr>
                                        <th data-options="field:'ck',checkbox:true,"></th>
                                        <th data-options="field:'PkId',halign:'center',">ID</th>
                                        <th data-options="field:'Tag',halign:'center',">所属节点</th>
                                        <th data-options="field:'Title',halign:'center',">标题</th>
                                        <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDateTime,">时间</th>
                                        <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatUserFlagStatus,">状态</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
                <div title="相关信息" style="overflow-x: hidden;">
                    <div class="easyui-layout" data-options="fit:true,">
                        <div data-options="region:'north',split:false," style="height: 30px; overflow: hidden;">
                            <div style="float: left;">
                                <a href="javascript:void(0)" class="easyui-linkbutton mp0" id="A2" data-options="iconCls:'icon-add1',plain:true,"></a>
                                <a href="#" class="easyui-menubutton" data-options="menu:'#mmss2',iconCls:'icon-edit',"></a>
                                <div id="mmss2" style="width: 150px;">
                                    <div data-options="iconCls:'icon-cancel'">删除</div>
                                    <div data-options="iconCls:'icon-stop'">停止</div>
                                </div>
                            </div>
                            <div style="float: right; padding: 2px 1px 0px 2px;">
                            </div>
                        </div>
                        <div data-options="region:'center',split:true," style="padding: 1px; overflow: hidden;">
                            <table id="Table2" class="easyui-datagrid" style="width: 100%; height: 100%; overflow: hidden;" data-options="title:'新闻内容列表',iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                            method:'post',autoRowHeight:true,toolbar:'#tbs',onLoadSuccess:function(){$(this).datagrid('enableDnd');},">
                                <thead>
                                    <tr>
                                        <th data-options="field:'ck',checkbox:true,"></th>
                                        <th data-options="field:'PkId',halign:'center',">ID</th>
                                        <th data-options="field:'Tag',halign:'center',">所属节点</th>
                                        <th data-options="field:'Title',halign:'center',">标题</th>
                                        <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDateTime,">时间</th>
                                        <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatUserFlagStatus,">状态</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript">
    $(function() {
        //$('#Image').mouseover(function(value){
        $('#imageSpan').click(function() {
            var obj = '#Image';
            var context = $('#Content').val().toLowerCase();
            var reg = /src=\"(.*?).(gif|jpg|png)/img;
            var match = reg.exec(context);
            //if (match == null) document.getElementById("Image").options.length = 1;
            while (match != null) {
                var picurl = match[0];
                if (picurl.indexOf("http://") == -1) {
                    picurl = picurl.replace("src=\"", "");
                    getPicurl(obj, picurl);
                } else {
                    picurl = picurl.replace("src=\"", "");
                    getPicurl(obj, picurl);
                }
                match = reg.exec(context);
            }
        });

        function getPicurl(obj, imgurl) {
            var isin = 0;
            var opts = $(obj).combobox('getData');
            for (var i = 0; i < opts.length; i++) {
                if (opts[i].text.toLowerCase() == imgurl.toLowerCase() || imgurl.toLowerCase().indexOf("http://") > -1)
                    isin = 1;
            }
            if (isin == 0) {
                $(obj).combobox('appendItem', { id: imgurl, text: imgurl });
            }
        }

        function showPic() {
            //alert(alert($('#Image').combobox('select'))); $('#Image1').attr('src', obj.text != null && obj.text != '' ? obj.text : '');
        }

        window.xbase.logonNo(); // 访问本页面，如已登录则跳转到index.html。
        window.xbase.closeDialog('#btnClose', '#dialog1');
        window.xbase.openDialog('#btnHelp', '#dialog2');
        var datas = 'action=' + $('#Action').val() + '&url=' + window.location.pathname + '&rnd=' + Math.random();
        switch ($('#Action').val()) {
        case 'ActEdit':
            datas = 'nodeid=' + $('#datagrid1').datagrid('getSelected').NodeId + '&id=' + $('#datagrid1').datagrid('getSelected').PkId + '&' + datas;
            break;
        case 'ActNew':
        default:
            datas = 'nodeid=' + $('#treeview1').tree('getSelected').attributes.value + '&' + datas;
            break;
        }
        editorBuilder('Content'); //在使用编辑前就要生成。
        window.setTimeout(checkImgContent, 5000); //生成编辑器后即检测图片。
        $.ajax({
            url: '/Ashx/Acc/Staff/NewsAdminInfoView.ashx?' + datas,
            data: datas,
            method: 'POST',
            success: function(result) {
                var json = window.xbase.json(result);
                $('#formx').form('load', json.node);
                $('#formx').form('load', json.info);
                KindEditor.html('#Content', json.info.Content);
                //$('#Content').html(json.Content);
                $("#Banner1").attr("src", json.info.Banner);
                $("#Guide1").attr("src", json.info.Guide);
                $("#Icon1").attr("src", json.info.Icon);
                $("#Image1").attr("src", json.info.Image);
            },
        });
        $('#BannerAdd').click(function() { imagesManager('#Banner', '#Banner1'); });
        $('#BannerDelete').click(function() {
            $("#Banner1").attr("src", "");
            $('#Banner').val("");
        });
        $('#BannerStop').click(function() {});
        $('#GuideAdd').click(function() { imagesManager('#Guide', '#Guide1'); });
        $('#GuideDelete').click(function() {
            $("#Guide1").attr("src", "");
            $('#Guide').val("");
        });
        $('#GuideStop').click(function() {});
        $('#IconAdd').click(function() { imagesManager('#Icon', '#Icon1'); });
        $('#IconDelete').click(function() {
            $("#Icon1").attr("src", "");
            $('#Icon').val("");
        });
        $('#IconStop').click(function() {});
        $('#GalleryAdd').click(function() { imagesManager('#Gallery', '#Gallery1'); });
        $('#GalleryDelete').click(function() {
            $("#Gallery1").attr("src", "");
            $('#Gallery').val("");
        });
        $('#GalleryStop').click(function() {});
        $('#btnSave').click(function() {
            $('#formx').form('submit', {
                url: '/Ashx/Acc/Staff/NewsAdminInfoForm.ashx?' + datas,
                //async: false,
                dataType: 'json',
                data: datas,
                success: function(result) {
                    if (!(result != null && result != '')) return window.xbase.return('系统错误', 'Ajax返回空值，请稍后重试！<br />ps:如果您使用了360浏览器，请换之！', 'error');
                    var json = window.xbase.json(result);
                    if (json.error == 0) $("#datagrid1").datagrid('reload');
                    $.messager.alert('提示信息', json.message.m_StringValue, 'info');
                    $('#dialog1').dialog('close');
                }
            });
        });
        $('#panelAdd').click(function() {
            var tabsIndex = $('#tabsContent').tabs('tabs').length + 1;
            $('#tabsContent').tabs('add', {
                id: 'tabsIndex' + tabsIndex,
                name: 'tabsIndex' + tabsIndex,
                title: '第' + tabsIndex + '页',
                content: '<textarea id="Content' + tabsIndex + '" name="Content' + tabsIndex + '" style="width: 100%; height: 100%; padding: 10px;"></textarea>',
                closable: true
            });
            //$('#tabsIndex' + tabsIndex).attr('class', 'tabsIndex');
            window.setTimeout(function() { resize('#tabsIndex' + tabsIndex); }, 1000);
            editorBuilder('Content' + tabsIndex);
        });

        window.setTimeout(function() { resize('#tabsIndex'); }, 1000);
        $(window).resize(function () {
            window.setTimeout(function () { resize('#tabsIndex'); }, 1000);
        });
        function resize(tabsIndex) {
            var height = $('#tabsContent').parent().height() - 33;
            //$(tabsIndex).height(height);
            $(tabsIndex).css("height", height);
            $(tabsIndex).css("overflow-x", 'hidden');
            $(tabsIndex).css("overflow-y", 'scroll');
        }

        function editorBuilder(content) {
            $.getScript('/ker/kindeditor-min.js', function() {
                if (!KindEditor) throw "KindEditor is not defined!!!";
                KindEditor.basePath = '/ker/';
                KindEditor.remove('textarea[name="' + content + '"]');
                KindEditor.create('textarea[name="' + content + '"]', {
                    width: '100%',
                    bodyClass: 'ke-content-ext',
                    themeType: 'simple',
                    langType: 'zh_CN', // this.value,
                    urlType: 'absolute', //relative|absolute|domain
                    uploadJson: '/ashx/app/UploadFiles.ashx',
                    fileManagerJson: '/ashx/app/UploadFilesBrowser.ashx',
                    allowFileManager: true,
                    autoHeightMode: true,
                    afterCreate: function() {
                        this.loadPlugin('autoheight');
                    },
                    afterBlur: function() { this.sync(); },
                    afterChange: function() //输入文字事件
                    {
                        //1.判断是否是IE，并获取内容高度 //2.设置高度
                        this.edit.setHeight(KindEditor.IE ? this.edit.doc.body.scrollHeight : this.edit.doc.body.offsetHeight);
                    }
                });
            });
        }

        function checkImgContent() {
            var opts = $('#Image').combobox('getValue');
            if (!opts) {
                var content = $('#Content').val();
                if (content && content.indexOf("<img") > -1)
                    $('#Image').combobox('setValue', '点击下拉选择附图片');
                else
                    $('#Image').combobox('setValue', '编辑器内无上传图片');
            }
        }

        function imagesManager(obj, objsrc) {
            $.getScript('/ker/kindeditor-min.js', function() {
                if (!KindEditor) throw "KindEditor is not defined！";
                var editor = KindEditor.editor({
                    allowFileManager: true, //允许选择已上传的图片
                    basePath: '/ker/',
                    pluginsPath: '/ker/plugins/',
                    themesPath: '/ker/themes/',
                    langPath: "/ker/lang/",
                    uploadJson: '/ashx/app/UploadFiles.ashx',
                    fileManagerJson: '/ashx/app/UploadFilesBrowser.ashx',
                });
                //debugger;
                editor.loadPlugin('image', function() {
                    editor.plugin.imageDialog({
                        imageUrl: $(obj).val(),
                        clickFn: function(url, title, width, height, border, align) {
                            $(obj).val(url);
                            $(objsrc).attr("src", url);
                            editor.hideDialog();
                        }
                    });
                });
            });
        }
    });
</script>
</body>
</html>
